package cn.tedu.spring.diarray;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestPerson {
    @Test
    public void demo01Test(){
        ApplicationContext context=new ClassPathXmlApplicationContext
                ("bean-diarray.xml");
        Person person=context.getBean("person",Person.class);
        System.out.println(person);
    }
}
